package com.firewolf.spring.aop.aspect;

import java.lang.reflect.Method;

import org.springframework.aop.AfterReturningAdvice;
import org.springframework.aop.MethodBeforeAdvice;
import org.springframework.aop.ThrowsAdvice;

/**
 * 切面类
 * @author lx
 *
 */
public class SleepHelper implements MethodBeforeAdvice, AfterReturningAdvice, ThrowsAdvice {

	@Override
	public void afterReturning(Object returnValue, Method method, Object[] args, Object target) throws Throwable {
		System.out.println("穿衣服");
	}

	@Override
	public void before(Method method, Object[] args, Object target) throws Throwable {
		System.out.println("脱衣服");
	}

}
